<!--
  Generated template for the MessagePage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar>
    <ion-title>{{opType?'客户信息详细':'客户信息编辑'}}</ion-title>
  </ion-navbar>

</ion-header>


<ion-content padding>
  <ion-list>
    <ion-item>
      <ion-label fixed>姓名：</ion-label>
      <ion-input [(ngModel)]="customer.name"></ion-input>
    </ion-item>
    <ion-item>
      <ion-label fixed>电话：</ion-label>
      <ion-input [(ngModel)]="customer.phone"></ion-input>
    </ion-item>
    <ion-item>
      <ion-label fixed>性别：</ion-label>
      <!--<ion-input [(ngModel)]="customer.sex"></ion-input>-->
      <ion-select [(ngModel)]="customer.sex" interface="popover">
        <ion-option value="男">男</ion-option>
        <ion-option value="女">女</ion-option>
      </ion-select>
    </ion-item>
    <ion-item>
      <ion-label fixed>公司：</ion-label>
      <ion-input [(ngModel)]="customer.company"></ion-input>
    </ion-item>
    <ion-item>
      <ion-label no-lines>备注：</ion-label>
    </ion-item>
    <ion-item>
      <ion-textarea [(ngModel)]="customer.remarks" ></ion-textarea>
    </ion-item>
    <ion-item>
      <ion-label fixed>创建时间：</ion-label>
      <ion-input [(ngModel)]="customer.createtime" readonly></ion-input>
    </ion-item>
  </ion-list>
  <div padding *ngIf="!opType">
    <button ion-button color="primary"  block (click)="save()" >保存</button>
  </div>
</ion-content>
